/*!
 *	JavaScript Document
 *	author:qinjieyou
 *	date:Dec,15 2011
 */
$(function() {
	bdPass.bindDescribeEvents();
	var a = $("input.input_radio");
	$(document).keydown(function(c) {
		if (c.which == 9) {
			c.preventDefault()
		}
	});
	var b = $(".input_text");
	$labels = $("label");
	$(".input_radio")
			.click(
					function() {
						var c = $("#" + this.id.replace("radio_type_", "text_")), e = c[0], d = $(
								this).next("label"), f = d[0];
						b.each(function(g, h) {
							if (h != e) {
								h.disabled = true;
								$(h).addClass("text_disabled").val("").next(
										".error").hide()
							}
						});
						$labels.each(function(g, h) {
							if (h != f) {
								$(h).removeClass("strong")
							}
						});
						e.disabled = false;
						e.focus();
						c.removeClass("text_disabled");
						d.addClass("strong")
					});
	$("#radio_type_" + bdPass.activeIndex).trigger("click")
});